package com.ssm.service.imp;

import com.ssm.mapper.UserInformationMapper;
import com.ssm.pojo.UserInformation;
import com.ssm.service.UserAdd;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("userAddImp")
public class UserAddImp implements UserAdd {

    @Autowired
    private UserInformationMapper userInformationMapper;

    @Override
    public Boolean userAdd(UserInformation data) {
        return userInformationMapper.addUser(data);
    }

    @Override
    public List<UserInformation> selectEmail(String email) {
        return userInformationMapper.selectEmail(email);
    }
}
